package com.ht.pms.core.service.job;


import com.ht.pms.core.service.SalaryUserService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@JobHandler(value = "userUpdateJobHandler")
@Component
public class UserUpdateJobHandler extends IJobHandler {

    private static Logger Log = LoggerFactory.getLogger(UserUpdateJobHandler.class);

    @Autowired
    private SalaryUserService salaryUserService;

    @Override
    public ReturnT<String>  execute(String param) throws Exception {
        Log.info("---------------------定时任务开始--------------------->");
        salaryUserService.updateUserInfo(null,null);

        Log.info("---------------------定时任务结束--------------------->");
        return SUCCESS;
    }


}